const state = () => ({
    admin: {
        name: 'kaho'
    }
})

const getters = {
    welcome: (state)=> {
        return `welcome, admin ${state.admin.name}`
    }
}

const mutations = {
    changeAdmin: (state, name) => {
        state.admin.name = name
    }
}

export default {
    namespaced: true,
    state,
    getters,
    mutations
}